//package com.liao.rent.entity;
//
//import com.baomidou.mybatisplus.annotation.*;
//import com.fasterxml.jackson.annotation.JsonFormat;
//import io.swagger.v3.oas.annotations.media.Schema;
//import lombok.Getter;
//import lombok.Setter;
//import org.springframework.format.annotation.DateTimeFormat;
//
//import java.io.Serializable;
//import java.time.LocalDateTime;
//
///**
// * <p>
// * 用户表
// * </p>
// *
// * @author liao
// * @since 2024-11-24
// */
//@Getter
//@Setter
//@TableName("sys_user")
////@ApiModel(description= "SysUser对象")
//@Schema(description= "SysUser对象")
//public class SysUser implements Serializable {
//
//    private static final long serialVersionUID = 1L;
//
//    @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;
//
//    @Schema(title = "账号")
////   @Schema(title = "账号")
//    @TableField("account")
//    private String account;
//
//
////   @Schema(title = "用户名")
//@Schema(title = "用户名")
//    @TableField("user_name")
//    private String userName;
//
////   @Schema(title = "用户密码")
//    @Schema(title = "用户密码")
//    @TableField("password")
//    private String password;
//
//    //   @Schema(title = "用户密码")
//    @Schema(title = "手机号")
//    @TableField("phone")
//    private String phone;
//
////    @Schema(title = "电子邮箱")
////    @TableField("emaill")
////    private String emaill;
////
////    @Schema(title = "身份证号")
////    @TableField("id_card")
////    private String idCard;
////
////    @Schema(title = "头像url")
////    @TableField("avatar")
////    private String avatar;
////
////    @Schema(title = "个人描述")
////    @TableField("desc")
////    private String desc;
////
////    @Schema(title = "性别(0.女，1.男)")
////    @TableField("sex")
////    private String sex;
////
////    @Schema(title = "爱好")
////    @TableField("hobby")
////    private String hobby;
////
////    @Schema(title = "职业")
////    @TableField("job")
////    private String job;
//
//
//
//    //   @Schema(title = "上一次登录时间")
//    @Schema(title = "上一次登录时间")
//    @TableField("last_login_time")
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private LocalDateTime lastLoginTime;
//
////   @Schema(title = "账号是否可用。默认为1（可用）")
//    @Schema(title = "账号是否可用。默认为1（可用）")
//    @TableField("enabled")
//    private Boolean enabled;
//
////   @Schema(title = "是否过期。默认为1（没有过期）")
//    @Schema(title = "是否过期。默认为1（没有过期）")
//    @TableField("account_non_expired")
//    private Boolean accountNonExpired;
//
////   @Schema(title = "账号是否锁定。默认为1（没有锁定）")
//    @Schema(title = "账号是否锁定。默认为1（没有锁定）")
//    @TableField("account_non_locked")
//    private Boolean accountNonLocked;
//
////   @Schema(title = "证书（密码）是否过期。默认为1（没有过期）")
//    @Schema(title = "证书（密码）是否过期。默认为1（没有过期）")
//    @TableField("credentials_non_expired")
//    private Boolean credentialsNonExpired;
//
////   @Schema(title = "创建时间")
//    @Schema(title = "创建时间")
//    @TableField(value = "create_time",fill = FieldFill.INSERT)
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private LocalDateTime createTime;
//
////   @Schema(title = "修改时间")
//    @Schema(title = "修改时间")
//    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
//    private LocalDateTime updateTime;
//
////   @Schema(title = "创建人")
//    @Schema(title = "创建人")
//    @TableField(value = "create_user",fill = FieldFill.INSERT)
//    private Integer createUser;
//
////   @Schema(title = "修改人")
//    @Schema(title = "修改人")
//    @TableField(value = "update_user",fill = FieldFill.INSERT_UPDATE)
//    private Integer updateUser;
//
//    /** 电子邮箱 */
//    @Schema(title =  "电子邮箱")
//    private String emaill ;
//    /** 身份证号 */
//    @Schema(title =  "身份证号")
//    @TableField(value = "id_card")
//    private String idCard ;
//    /** 头像url */
//    @Schema(title =  "头像url")
//    private String avatar ;
//    /** 个人描述 */
//    @Schema(title =  "个人描述")
//    private String desc ;
//    /** 性别(0.女，1.男) */
//    @Schema(title =  "性别(0.女，1.男)")
//    private Integer sex ;
//    /** 爱好 */
//    @Schema(title =  "爱好")
//    private String hobby ;
//    /** 职业 */
//    @Schema(title =  "职业")
//    private String job ;
//
//}

package com.liao.rent.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author liao
 * @since 2024-12-07
 */
@Getter
@Setter
@TableName("sys_user")
@Schema(description = "用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

   @Schema(title = "账号")
    @TableField("account")
    private String account;

   @Schema(title = "用户名")
    @TableField("user_name")
    private String userName;

   @Schema(title = "用户密码")
    @TableField("password")
    private String password;

   @Schema(title = "手机号")
    @TableField("phone")
    private String phone;

   @Schema(title = "上一次登录时间")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;

   @Schema(title = "账号是否可用。默认为1（可用）")
    @TableField("enabled")
    private Boolean enabled;

   @Schema(title = "是否过期。默认为1（没有过期）")
    @TableField("account_non_expired")
    private Boolean accountNonExpired;

   @Schema(title = "账号是否锁定。默认为1（没有锁定）")
    @TableField("account_non_locked")
    private Boolean accountNonLocked;

   @Schema(title = "证书（密码）是否过期。默认为1（没有过期）")
    @TableField("credentials_non_expired")
    private Boolean credentialsNonExpired;

   @Schema(title = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
   @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

   @Schema(title = "修改时间")
    @TableField(value ="update_time", fill=FieldFill.INSERT_UPDATE)
   @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

   @Schema(title = "创建人")
    @TableField( value = "create_user" , fill=FieldFill.INSERT_UPDATE)
    private Integer createUser;

   @Schema(title = "修改人")
    @TableField(value="update_user", fill=FieldFill.INSERT_UPDATE)
    private Integer updateUser;

   @Schema(title = "电子邮箱")
    @TableField("emaill")
    private String emaill;

   @Schema(title = "身份证号")
    @TableField("id_card")
    private String idCard;

   @Schema(title = "头像url")
    @TableField("avatar")
    private String avatar;

   @Schema(title = "个人描述")
    @TableField("user_desc")
    private String userDesc;

   @Schema(title = "性别(0.女，1.男)")
    @TableField("sex")
    private Byte sex;

   @Schema(title = "爱好")
    @TableField("hobby")
    private String hobby;

   @Schema(title = "职业")
    @TableField("job")
    private String job;
}

